package com.letfox.ad.service.relation.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.ad.dao.relation.ADColScreDao;
import com.letfox.ad.model.ADPhysicScreen;
import com.letfox.ad.model.ADScreenPlan;
import com.letfox.ad.model.ADSereenPlan;
import com.letfox.ad.model.ADServingMaterial;
import com.letfox.ad.model.ADTimeRangeStatistics;
import com.letfox.ad.service.relation.ADColScreService;

@Service
public class ADColScreServiceImpl implements ADColScreService{

	@Autowired
	private ADColScreDao colScreDao;
	
	public List<ADServingMaterial> getMaterialList(String servingId) {
		return colScreDao.getMaterialList(servingId);
	}

	@Override
	public int insertPlan(ADScreenPlan adScreenPlan) {
		return colScreDao.insertPlan(adScreenPlan);
	}

	@Override
	public int insertScreenMaterial(Map<String, String> map) {
		return colScreDao.insertScreenMaterial(map);
	}

	@Override
	public int insertScrePlanMaterial(Map<String, String> map) {
		return colScreDao.insertScrePlanMaterial(map);
	}

	@Override
	public int insertPhysic(ADPhysicScreen adPhysicScreen) {
		return colScreDao.insertPhysic(adPhysicScreen);
	}

	@Override
	public int insertScreenPlayDetail(Map<String, String> map) {
		return colScreDao.insertScreenPlayDetail(map);
	}

	@Override
	public List<ADTimeRangeStatistics> selectAdEveryday(Map<String, String> map) {
		return colScreDao.selectAdEveryday(map);
	}

	@Override
	public List<Map<String, String>> selectAdFirstTen(String sereenId) {
		return colScreDao.selectAdFirstTen(sereenId);
	}

	@Override
	public Map<String, String> selectAdCurrent(Map<String, String> map) {
		return colScreDao.selectAdCurrent(map);
	}

	@Override
	public String selectPlanMoney(String sereenId) {
		return colScreDao.selectPlanMoney(sereenId);
	}

	@Override
	public List<Map<String, String>> selectPhys() {
		return colScreDao.selectPhys();
	}

	@Override
	public List<Map<String, String>> selectADPlans() {
		return colScreDao.selectADPlans();
	}

	@Override
	public ADServingMaterial getMaterial(String servingId) {
		return colScreDao.getMaterial(servingId);
	}

	@Override
	public List<Map<String, String>> selectAdPhysicTen(Map<String, String> map) {
		return colScreDao.selectAdPhysicTen(map);
	}
	
	
	@Override
	public List<ADServingMaterial> MatchingMaterial(Map<String, String> map) {
		return colScreDao.MatchingMaterial(map);
	}

	@Override
	public List<ADServingMaterial> twoMatchingMaterial(Map<String, Integer> map) {
		return colScreDao.twoMatchingMaterial(map);
	}

	@Override
	public List<Map<String, String>> queryPlanList(Map<String, String> map) {
		return colScreDao.queryPlanList(map);
	}

	@Override
	public List<Map<String, String>> queryScreenInfo(String screenPlanId) {
		return colScreDao.queryScreenInfo(screenPlanId);
	}

	@Override
	public Map<String, String> queryPlan(String screenPlanId) {
		return colScreDao.queryPlan(screenPlanId);
	}

	@Override
	public void updatePlanInfo(ADSereenPlan adSereenPlan) {
		 colScreDao.updatePlanInfo(adSereenPlan);
	}

	@Override
	public List<Map<String, String>> queryPhysicIdAll() {
		return colScreDao.queryPhysicIdAll();
	}

	@Override
	public Map<String, String> queryPhysicId(String screenId) {
		return colScreDao.queryPhysicId(screenId);
	}
	
}
